package org.example.enums;

import java.math.BigDecimal;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

public class Constant {

    /**
     * 一秒钟
     */
    public static final long ONE_SES = 1000;
    /**
     * 半秒钟(服务器人数已满，对新登录的连接，延迟关闭的时间)
     */
    public static final int HALF_ONE_SES = 500;
    /**
     * 一分钟多少毫秒
     */
    public static final long ONE_MIN = 60 * ONE_SES;
    /**
     * 一分钟多少秒
     */
    public static final int ONE_MIN_SES = 60;
    /**
     * 一分钟多少秒
     */
    public static final int FIVE_MIN_SES = ONE_MIN_SES * 5;
    /**
     * 一小时
     */
    public static final long ONE_HOUR = 60 * 60 * ONE_SES;
    /**
     * 数组长度1,值为0的集合
     */
    public static final List<Integer> ZERO_LIST = Collections.singletonList(0);
    /**
     * 数组长度1,值为0的数组
     */
    public static final int[] ZERO_ARR = new int[]{0};
    public static BigDecimal big100 = BigDecimal.TEN.multiply(BigDecimal.TEN);
    public static AtomicInteger atomicZero = new AtomicInteger(0);
    /**
     * 禁止攻击时，使用此值占位
     */
    public static final long BanFightTroopId = -1L;
    /**
     * 一万常量
     */
    public static final int TEN_THOUSAND = 10000;
    /**
     * 十万常量
     */
    public static final int HUNDRED_THOUSAND = 100000;

}
